<template>
  <div class="profile">
    <el-card>
      <h2>个人中心</h2>
      <el-form label-width="100px" style="max-width: 400px">
        <el-form-item label="用户名">
          <el-input v-model="user.username" placeholder="未登录" disabled />
        </el-form-item>
        <el-form-item label="当前身份">
          <el-radio-group v-model="user.role">
            <el-radio label="provider">提供需求</el-radio>
            <el-radio label="solver">解决需求</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="信誉分">
          <el-rate v-model="user.reputation" disabled />
        </el-form-item>
      </el-form>
      <el-divider />
      <h3>消息通知</h3>
      <el-empty description="暂无消息" />
    </el-card>
  </div>
</template>
<script setup>
import { ref } from "vue";
const user = ref({
  username: "测试用户",
  role: "provider",
  reputation: 4.5,
});
</script>
<style scoped>
.profile {
  max-width: 600px;
  margin: 40px auto;
}
</style>
